import request from '@/utils/request'

// 查询持仓明细填报列表
export function listRiskPositionDetail(query) {
  return request({
    url: '/positionDetail/riskPositionDetail/list',
    method: 'get',
    params: query
  })
}

// 查询持仓明细填报详细
export function getRiskPositionDetail(id) {
  return request({
    url: '/positionDetail/riskPositionDetail/' + id,
    method: 'get'
  })
}

// 保存持仓明细填报
export function saveRiskPositionDetail(data) {
  return request({
    url: '/positionDetail/riskPositionDetail/save',
    method: 'post',
    data: data
  })
}

// 删除持仓明细填报
export function delRiskPositionDetail(id) {
  return request({
    url: '/positionDetail/riskPositionDetail/' + id,
    method: 'delete'
  })
}

// 导出持仓明细填报
export function exportRiskPositionDetail(query) {
  return request({
    url: '/positionDetail/riskPositionDetail/export',
    method: 'get',
    params: query
  })
}
